package com.demo.component.configuration;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

@Component
public class WebSecurityManager {

    /**
     * 请求认证系统--获取用户信息或鉴权
     * */
	public boolean isValidLogin(HttpServletRequest request) {
	   /*
        String url = "";
        Map<String,String> params = new HashMap<>();
        Map<String,String> head = new HashMap<>();
        String result = HttpUtil.httpPost(url,params,head);
        ModelResult<LoginUserBean> model = (ModelResult<LoginUserBean>) JSON.parse(result);
        if(model!=null && model.getCode() == ErrorCodeEnum.SUCCESS_CODE.getCode() && model.getData() != null){
            LocalContext.setLoginUserBean(model.getData());
            return true;
        }else{
            return false;
        }*/

        return true;
	}

}
